package com.zmzncs.lmtc.module.customer.pojo.card;

import com.zmzncs.lmtc.common.pojo.enums.WhetherEnum;
import com.zmzncs.lmtc.common.pojo.enums.optionalvalue.order.OrderCardTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 客户-会员卡
 * </p>
 *
 * @author 任建波
 * @since 2020-08-26
 */
@Data
public class HasCardDTO implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "时长卡剩余时长")
    private Long timeLeft;

    @ApiModelProperty(value = "订单使用的会员卡类型")
    private OrderCardTypeEnum orderCardTypeEnum;

    @ApiModelProperty(value = "订单使用的会员卡集合")
    private List<UsedCard> usedCardList;

    @ApiModelProperty(value = "客户Id")
    private Long customerId;

    @ApiModelProperty(value = "信息")
    private String massage;

    @Data
    public static class UsedCard {

        @ApiModelProperty(value = "会员卡id")
        private Long id;

        @ApiModelProperty(value = "使用时长")
        private Integer useTime;

        @ApiModelProperty(value = "原剩余余额")
        private BigDecimal oldBalance;

        @ApiModelProperty(value = "使用金额（余额）")
        private BigDecimal useBalance;

    }

}
